﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.MesDB
{
    [Serializable]
    [Table("field_scheme")]
    public class FieldScheme
    {
        /// <summary>
        /// id，主键，自增长
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("id")]
        public int ID { get; set; }

        /// <summary>
        /// 工单号
        /// </summary>
        [Column("usebill_flag")]
        public string UsebillFlag { get; set; }
        
        // <summary>
        /// 方案名称
        /// </summary>
        [Column("scheme_name")]
        public string SchemeName { get; set; }

        // <summary>
        /// 字段名称
        /// </summary>
        [Column("field_name")]
        public string FieldName { get; set; }

        // <summary>
        /// 是否显示
        /// </summary>
        [Column("is_visible")]
        public bool IsVisible { get; set; }

        // <summary>
        /// 创建人编码
        /// </summary>
        [Column("creator_number")]
        public string CreatorNumber { get; set; }

        // <summary>
        /// 创建人名称
        /// </summary>
        [Column("creator_name")]
        public string CreatorName { get; set; }

        // <summary>
        /// 创建日期
        /// </summary>
        [Column("creat_date")]
        public DateTime? CreatDate { get; set; }

        // <summary>
        /// 修改日期
        /// </summary>
        [Column("modify_date")]
        public DateTime? ModifyDate { get; set; }
    }
}
